import request from '@/utils/request'

// 查询地区
export function tExamSubjectPageList(query) {
    return request({
      url: '/tExamSubject/query',
      method: 'get',
      params: query
    })
}

//新增题目
export function addQuestions(data) {
    return request({
      url: '/tExamSubject/insertTExamSubject',
      method: 'post',
      data
    })
}

//修改题目
export function updateQuestions(data) {
    return request({
      url: '/tExamSubject/update',
      method: 'post',
      data
    })
}


//删除题目
export function deleteQuestions(id) {
    return request({
      url: '/tExamSubject/delete?id='+id,
      method: 'post',
      data:null
    })
}

//查询题目详情
export function getQuestionsDetails(id) {
    return request({
      url: '/tExamSubject/'+id,
      method: 'get'
    })
}